<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/edit_?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>图片：</label>  
                <input id="testFileInput2" type="file" name="images"                                        
                    uploaderOption="{
                        swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
                        uploader:'__MODULE__/Common/upImg',
                        formData:{authId:<?php echo $_SESSION['authId'];?>,ajax:8,club_id:<?php echo $club_id;?>},
                        buttonText:'请选择文件',
                        fileSizeLimit:'20000KB',
                        fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
                        fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
                        auto:true,
                        onUploadSuccess:function(file,data,respore){
                        }
                    }"
                />
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
<script>
    $(function(){
        $("#group").val($('#club_id_ option:selected').val());
        $('#club_id_').change(function(){
            $("#group").val($('#club_id_ option:selected').val());
        });
        $("input[type='radio']").click(function(){
            if($(this).val()==1){
                $("#clubs").css("display","");
                $("#secs").css("display","none");
                $("#group").val($('#club_id_ option:selected').val());
                $('#club_id_').change(function(){
                    $("#group").val($('#club_id_ option:selected').val());
                });
            }else if($(this).val()==2){
                $("#clubs").css("display","none");
                $("#secs").css("display","");
                $("#group").val($('#sec_id_ option:selected').val());
                $('#sec_id_').change(function(){
                    $("#group").val($('#sec_id_ option:selected').val());
                });
            }else{
                $("#clubs").css("display","none");
                $("#secs").css("display","none");
                $("#group").val('');
            }
       }) ;
    });

</script>
